package com.lanou3g.zjl.chating.home.chatwindow.child;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lanou3g.zjl.chating.R;


/**
 * Created by dllo on 15/11/23.
 */
public class ChatWindowFrgTitle extends RelativeLayout {

    private TextView friendName_Tv;  // 聊天对象

    private RelativeLayout cwfTitle_Bg; // 标题背景

    public ChatWindowFrgTitle(Context context) {
        super(context);
        initView(context);
    }

    public ChatWindowFrgTitle(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    public ChatWindowFrgTitle(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView(context);
    }

    private void initView(Context context) {
        // 加载 标题栏 布局
        LayoutInflater.from(context).inflate(R.layout.chatwindowfrg_title, this);
        friendName_Tv = (TextView) findViewById(R.id.friendName_Tv);

    }


    public void setTitleText(String str) {
        friendName_Tv.setText(str);
    }


}
